package top.whysu.edevice.po.relative;

import java.math.BigDecimal;
import java.util.Date;
import java.io.Serializable;

/**
 * 密钥-AccessToken关联关系表（因为要经常更新，所以和密钥表分开保存）(RelativeSecretKeyTokenPO)实体类
 *
 * @author makejava
 * @since 2021-06-19 21:38:51
 */
public class RelativeSecretKeyTokenPO implements Serializable {
    private static final long serialVersionUID = 548897896011371958L;
    /**
    * 主键
    */
    private BigDecimal id;
    /**
    * 密钥id, 对应e_manage_secret_key的主键id
    */
    private BigDecimal secretKeyId;
    /**
    * 萤石对应的access_token, 每7天失效
    */
    private String accessToken;
    /**
    * access_token过期时间
    */
    private Long expireTime;


    public BigDecimal getId() {
        return id;
    }

    public void setId(BigDecimal id) {
        this.id = id;
    }

    public BigDecimal getSecretKeyId() {
        return secretKeyId;
    }

    public void setSecretKeyId(BigDecimal secretKeyId) {
        this.secretKeyId = secretKeyId;
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public Long getExpireTime() {
        return expireTime;
    }

    public void setExpireTime(Long expireTime) {
        this.expireTime = expireTime;
    }
}